import java.util.Arrays;

public class TestBinarySearch {
    //https://gitee.com/ggjicngh/algorithm.git
    public static void main(String[] args) {
        int[] a ={1,3,5,8,10,23,25,57,69};
        int i3 = try1.try1(a, 2);
        System.out.println(i3);
        int i = BinarySearch.binarySearchBasic(a, 6);
        System.out.println("目标值索引为"+i);
        int[] b={0,1};
        int i1 = binarySearchGBD.binarySearchGDB(b, 1);
        System.out.println("目标值索引为"+i1);
        int i2 = Arrays.binarySearch(a, 2);
        System.out.println(i2);
    }
}
